package com.zyl.edthresholdtraining.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyl.edthresholdtraining.entity.TimePartitionAllow;
import com.zyl.edthresholdtraining.entity.UserTestResult;
import com.zyl.edthresholdtraining.mapper.TimePartitionAllowMapper;
import com.zyl.edthresholdtraining.mapper.UserTestResultMapper;
import com.zyl.edthresholdtraining.vo.UserTestResultVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhangyulu
 * @description
 * @date 2020/7/31/031
 */
@Slf4j
@Service
public class UserTestResultService extends ServiceImpl<UserTestResultMapper, UserTestResult> {

    @Autowired
    private UserTestResultMapper userTestResultMapper;


    public UserTestResultVO getTimePartitionTotalAvg(String timePartitionUuid, HttpServletRequest request) {
        return userTestResultMapper.getUserTestResultVO(timePartitionUuid);
}
}
